package admin.service.impl;

import admin.dao.AdminDao;
import admin.dao.impl.AdminDaoImpl;
import admin.service.AdminService;

import java.util.Date;

public class AdminServiceImpl implements AdminService {


    AdminDao dao = new AdminDaoImpl();

    @Override
    public boolean login(String userName, String passWord) {
        return dao.login(userName,passWord);
    }

    @Override
    public void updateLoginTimeAndIP(String userName, Date date, String ip) {

        dao.updateLoginTime(userName,date,ip);
    }
}
